﻿@model NWNTWebsite.Areas.NWNTAdmin.Models.UserViewModel
@{
    ViewBag.Title = "Change Password";
}
<h1>@ViewBag.Title</h1>
<!-- main content start -->
<script src="~/Scripts/jquery.validate.min.js"></script>
<script>
    $("#SubmitEmail").on("click", function () {
        var testfrom = $("#UserFrom").validate({
            debug: true,
            submitHandler: postData(),
            rules: {
                UserName: { required: true },
                email: {
                    required: true,
                    email: true
                }
            }
        });
        return false;
    });
</script>
@using (Html.BeginForm(null, null, FormMethod.Get, new { name = "ForgetPasswordFrom", id = "ForgetPasswordFrom" }))
{

    <div class="row">
        <!-- left col start -->
        <div class="col-md-9" id="col-left">
            <div class="form-horizontal">
                @Html.ValidationSummary(true)
                <div class="form-group">
                    <div class=" col-md-12">
                        @Html.Label("Email")
                        @Html.TextBox("Email", Model.UserInfoModel.Email, new { @placeholder = "Email", @class = "form-control", @required = "required", @type = "email" })
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-12">
                        <input id="SubmitEmail" type="submit" value="Send Password" class="btn btn-primary" />
                    </div>
                </div>
            </div>
        </div>
        <!-- left col end -->
        <!-- right col start -->
        <div class="col-md-3 rnav-cont" id="col-right">
            @Html.Partial("_PartialNewsUpdates")
        </div>
        <!-- right col end -->
    </div>
}
<!-- main content end -->